<template>
  <div id="app">
    <Header/>
    <router-view :key="$route.fullPath"></router-view>
    <!-- <Footer v-show="$route.path=='/home'||$route.path=='/search'" /> -->
    <Footer v-show="$route.meta.show" />

  </div>
</template>

<script>
import Header from './components/Header/index.vue'
import Footer from './components/Footer/index.vue'

export default {
  name: 'App',
  provide(){

  },
  data(){

  },
  components: {
    Header,
    Footer
},
created(){
  console.log(this.$route.meta);
},
methods:{
},
mounted(){
  //   通知vuex获取数据
      this.$store.dispatch('categoryList')
}

}
</script>

<style>


</style>
